package com.hsmpay.mobile.service.terminal.impl;

import com.hsmpay.common.service.impl.BaseServiceSupport;
import com.hsmpay.mobile.dao.terminal.TchannelMDao;
import com.hsmpay.mobile.pojo.terminal.TchannelM;
import com.hsmpay.mobile.service.terminal.TchannelMService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 大poss 终端通道 服务接口 tchannelService
 * 对应 sqlmap tchannelDao
 *
 * @author 颜铃璋
 * @created 2014-05-20
 */
@Service("tchannelMService")
public class TchannelMServiceImpl extends BaseServiceSupport<TchannelM, Long> implements TchannelMService<TchannelM, Long> {
    @Resource(name = "tchannelMDao")
    private TchannelMDao<TchannelM, Long> tchannelMDao;


    /**
     * 根据终端代码  查询通道商户号
     *
     * @param code
     * @return
     * @throws Exception
     */
    public TchannelM searchTchannelMByCode(Integer code, String mcode, String tcode) throws Exception {
        return tchannelMDao.searchTchannelMByCode(code, mcode, tcode);
    }

}